public class SOPage extends ArDkPage
SOLayer_All, SOLayer_Background, SOLayer_None, SOSelectMode_Caret, SOSelectMode_DefaultUnit, SOSelectMode_End, SOSelectMode_Start
Modifier | Constructor and Description |
---|---|
protected |
SOPage(long internal)
Private constructor - only called from JNI
|
Modifier and Type | Method and Description |
---|---|
void |
destroyPage() |
void |
discard()
Discard a page.
|
protected void |
finalize()
Private finalizer
|
SOAnimationCommand[] |
getAnimations()
Get the animation commands for this page.
|
float[] |
getHorizontalRuler()
Get the graduation positions for the horizontal ruler for this page
|
java.lang.String |
getPageTitle()
Get the title of this page.
|
SOTransition |
getSlideTransition() |
android.graphics.Point |
getTopLeftCell() |
float[] |
getVerticalRuler()
Get the graduation positions for the vertical ruler for this page
|
SOHyperlink |
objectAtPoint(float atX,
float atY)
Get hyperlink (if there is one) at the given point
|
void |
releasePage() |
ArDkRender |
renderLayerAtZoomWithAlpha(int layer,
double zoom,
double originX,
double originY,
ArDkBitmap bitmap,
ArDkBitmap alpha,
SORenderListener listener,
boolean uiThread,
boolean inverted)
Kick off a render.
|
int |
select(int mode,
double atX,
double atY)
Select page object at point
|
int |
select(int mode,
android.graphics.PointF atPoint)
Select page object at point
|
SOSelectionLimits |
selectionLimits()
Request information on the type and position of the current Selection.
|
void |
setSelectionLimitsBox(float l,
float t,
float r,
float b) |
void |
setSelectionLimitsBox(android.graphics.RectF box) |
boolean |
setTopLeftCell(int col,
int row) |
android.graphics.Point |
sizeAtZoom(double zoom)
Return the size a page will display at if rendered with a given zoom factor.
|
android.graphics.PointF |
zoomToFitRect(int w,
int h)
Find the horizontal and vertical zoom factors that will scale the page to fit within
given screen dimensions.
|
android.graphics.PointF |
zoomToFitRect(android.graphics.Point size)
Find the horizontal and vertical zoom factors that will scale the page to fit within
given screen dimensions.
|
renderAtZoom
protected SOPage(long internal)
internal
- C pointer cast to a longpublic android.graphics.PointF zoomToFitRect(android.graphics.Point size)
size
- the desired screen dimensionspublic android.graphics.PointF zoomToFitRect(int w, int h)
zoomToFitRect
in class ArDkPage
w
- the desired screen widthh
- the desired screen heightpublic android.graphics.Point sizeAtZoom(double zoom)
sizeAtZoom
in class ArDkPage
zoom
- zoom factorpublic ArDkRender renderLayerAtZoomWithAlpha(int layer, double zoom, double originX, double originY, ArDkBitmap bitmap, ArDkBitmap alpha, SORenderListener listener, boolean uiThread, boolean inverted)
renderLayerAtZoomWithAlpha
in class ArDkPage
layer
- layer to renderzoom
- zoom factor to render atoriginX
- x coord of origin for rendering (bitmap coordinates)originY
- y coord of origin for rendering (bitmap coordinates)bitmap
- bitmap to render intoalpha
- alpha mask to render intolistener
- listener for render completion/errorsuiThread
- set true to call the listener on the UI threadpublic int select(int mode, android.graphics.PointF atPoint)
mode
- What sort of selection to attemptatPoint
- Position to try for a selection atpublic int select(int mode, double atX, double atY)
public SOSelectionLimits selectionLimits()
selectionLimits
in class ArDkPage
public SOHyperlink objectAtPoint(float atX, float atY)
objectAtPoint
in class ArDkPage
atX
- X coord of position to look for a hyperlinkatY
- Y coord of position to look for a hyperlinkpublic void discard()
public float[] getHorizontalRuler()
public float[] getVerticalRuler()
public java.lang.String getPageTitle()
public SOTransition getSlideTransition()
public SOAnimationCommand[] getAnimations()
public void releasePage()
releasePage
in class ArDkPage
public void destroyPage()
destroyPage
in class ArDkPage
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public void setSelectionLimitsBox(android.graphics.RectF box)
public void setSelectionLimitsBox(float l, float t, float r, float b)
public android.graphics.Point getTopLeftCell()
getTopLeftCell
in class ArDkPage
public boolean setTopLeftCell(int col, int row)
setTopLeftCell
in class ArDkPage